package com.itqf.dao;

import com.itqf.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/25
 * @Time: 上午10:07
 */
public interface ProductDao {

    public List<Product> findAll();

    public List<Product> findByNameAndInfo
            (@Param("name") String name,
             @Param("info") String info,
             @Param("startIndex") int startIndex,
             @Param("pageSize") int pageSize);

    public List<Product> findByNameAndInfo1
            (@Param("name") String name,
             @Param("info") String info);

    public   int  update(Product product);

    public int deleteByIds(List<Integer> ids);// where p_id in(?,?,?)








}
